﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript">
        function sss(n) {
            this.ssss = n;
            this.sdds = function () {
                alert(this.ssss);
            }
            //alert(n);
        }
        function ddd() {
            sss.call(this, 2);
            this.sdds = function () {
                alert(this.ssss + 1);
            }
            //this.call(sss);
        }

        function asdf() {
            ddd.call(asdf);
        }
        var sd = new ddd();
        alert(sd.ssss);
        var mm = new sss(3);
        alert(mm.ssss);
        //alert(sd.ssss);
        sd.sdds();
        var mmc = new asdf();
        alert(mmc.ssss);
    </script>
</head>
<body>

</body>
</html>
